package com.holy.sh.module_base_mvp.utils;

import java.util.List;

/**
 * ClassName: ListTools<p>
 * Author: Alpha<p>
 * Des: ListTools<p>
 * AutoLink: http://alphaknife.github.io/<p>
 * CreateDate: 2016/5/27 13:15<p>
 * UpdateUser: Alpha<p>
 * UpdateDate: 2016/5/27 13:15<p>
 */
public class ListTools {

    public static boolean empty(List list) {
        return (list == null || list.size() <= 0) ? true : false;
    }

    public static boolean isThan(List list, int size) {
        return (list != null && list.size() > size) ? true : false;
    }

    public static boolean isLess(List list, int size) {
        return (list == null || list.size() < size) ? true : false;
    }
}
